CXX = g++
CC = gcc
CFLAGS = `pkg-config --cflags --libs gtk+-3.0`
TARGET = tomclk

all: $(TARGET)

$(TARGET): global.o main.cpp callbacks.o
	$(CXX) $(CFLAGS) main.cpp gtkCallBacks.o gtkGlobals.o -o $(TARGET)

global.o: gtkGlobals.h gtkGlobals.cpp
	$(CXX) $(CFLAGS) gtkGlobals.h gtkGlobals.cpp -c

callbacks.o: global.o
	$(CXX) $(CFLAGS) gtkCallBacks.h gtkCallBacks.cpp gtkGlobals.o -c

.PHONY(clean):
clean:
	rm -rf *.gch *.o
	rm -rf $(TARGET)
